package com.example.glgk.dto;

import com.example.glgk.excel.ExcelDto;
import com.example.glgk.excel.ExcelField;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @author lxk
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ExcelDto(fileName="三级公立医院绩效考核数据采集")
public class EscalationData {

    @ApiModelProperty(value = "项目")
    @ExcelField(index = 0,colName = "项目",colWidth = 400)
    private String project;

    @ApiModelProperty(value = "单位")
    @ExcelField(index = 1,colName = "单位",colWidth = 250)
    private String unit;

    @ApiModelProperty(value = "行次")
    @ExcelField(index = 2,colName = "行次",colWidth = 250)
    private int row;

    @ApiModelProperty(value = "动态列，使用时间作为 key，数据作为 value")
    // 如果为空map 不导出   如果集合有数据，那么key作为表头，对应的value作为单元格的数据
    private Map<String, String> dynamicColumns = new LinkedHashMap<>();

}
